package com.lxw.manage.course.controller;


import com.lxw.api.course.CategoryControllerApi;
import com.lxw.framework.domain.course.ext.CategoryNode;
import com.lxw.manage.course.service.ICategoryService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;


@RestController
public class CategoryController implements CategoryControllerApi {

    @Autowired
    ICategoryService categoryService;

    @GetMapping("/category/list")
    @Override
    public CategoryNode findCategoryList() {

        //TODO 未完成
        CategoryNode categoryNode = categoryService.findCategoryList();
        return categoryNode;
    }
}
